package com.wxq.demo.db1.service;

import com.wxq.demo.bean.Book;
import com.wxq.demo.db1.dao.Db1Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Db1Service {
    @Autowired
    private Db1Dao db1Dao;

    public List<Book> getAllBooks(){
        return db1Dao.getAllBooks();
    }
}
